﻿@using System.Configuration
@using KMF.Utility
@model List<KMF.Common.ProviderListCateHomeDto>

@if(Model.Any()){
    var hostContainImages = ConfigurationManager.AppSettings["HostContainImages"];
    <div class="box-provider-cate">
        <ul class="providerList-cate clearfix">
            @foreach (var item in Model)
            {
                <li>
                    <a href="@Url.Action("Index", "ProductByProvider", new { Provider = item.Id, ProviderName = StringUtil.RemoveSpecialCharactersVn(item.Name) })" title="@item.Name">
                        <img src="@hostContainImages/upload/ProviderImages/@item.ImagePath?width=84&height=45" alt="' + data.Name + '" width="84" height="45" title="@item.Name" class="desaturate" />
                    </a>
                </li>
            }
            <li class="viewmore-brand">
                <a href="@Url.Action("ViewProviderHomeByCate", "ProviderHome", new { categoryId = ViewBag.ParentId, categoryName = StringUtil.RemoveSpecialCharactersVn(ViewBag.CateName) })" class="lnktitleList" title="xem tất cả thương hiệu">
                    <i class="provi-icon-all"></i>
                    Xem thêm
                </a>
            </li>
        </ul>
    </div>
}

